package com.itheima.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.RoleDao;
import com.itheima.pojo.Role;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @description:
 * @author: LuoXuhuan
 * @date: 2020/10/28-19:07
 * @Version: 1.0.0
 */
@Service
@Slf4j
public class RoleServiceImpl implements RoleService{

    @Autowired
    RoleDao roleDao;


    @Override
    public List<Role> findRole() {

        List<Role> role = roleDao.findRole();

        return role;
    }
}